public class test07 {
        public static void main(String[] args) {
    //比较任意两个数组内容是否一直
    int[] arr={1,2,3,4};
    int[] brr={2,3,4,5};
        System.out.println(Compare(arr, brr));
    }

    public static boolean Compare(int[] arr,int[] brr){
        if(arr.length==brr.length){
            for (int i = 0; i < arr.length; i++) {
                if(arr[i]!=brr[i]){
                    return  false;
                }
            }
            return true;
        }
        else {
            return false;
        }
    }
}
